<extend name="./Common/View/Public/form.html" />
<block name="page_title">添加班级</block>
<block name="main">
        <form class="layui-form" method="post" action="base/class/insert" lay-filter="pageForm">
            <div class="layui-form-item">
                <label class="layui-form-label">专业</label>
                <div class="layui-input-block">
                    <select name="depart_id" id="depart_id" lay-filter="depart_id" value="0" api="base/Department/slist/type/3" empty="所属专业">
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">班级名称</label>
                <div class="layui-input-inline">
                    <input type="text" name="title" maxlength="50" minlength="1" required lay-verify="required|length" placeholder="请输入班级名称" autocomplete="off" class="layui-input" />
                </div>
                <div class="layui-form-mid layui-word-aux">1-15个英文或汉字</div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">年级</label>
                <div class="layui-input-inline">
                    <select name="grade" id="grade" lay-filter="grade" required lay-verify="required" value="{:date('Y')}" api="sys/Config/grade" empty="年级"></select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">学制</label>
                <div class="layui-input-inline">
                    <select name="system" id="system" lay-filter="system" required lay-verify="required" value="3" api="sys/Config/xz" empty="学制"></select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">班级状态</label>
                <div class="layui-input-block">
                    {:W('Todo/Dict/radio',array('STATUS','status',1))}
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">班主任工号</label>
                <div class="layui-input-block">
                    <input type="text" name="master" maxlength="20" lay-verify="length" placeholder="请输入班主任工号" autocomplete="off" class="layui-input" />
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="pageForm">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </block>